package com.shopnight.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName apple_service
 */
@TableName(value ="apple_service")
public class AppleService implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 名字
     */
    private String name;

    /**
     * 路径
     */
    private String url;

    /**
     * 
     */
    private String isActive;

    /**
     * 是否小程序
     */
    private String isMiniProgram;

    /**
     * logo
     */
    private String image;

    /**
     * 小程序id
     */
    private String appid;

    /**
     * 小程序路径
     */
    private String path;

    /**
     * 
     */
    private String isShow;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    public Integer getId() {
        return id;
    }

    /**
     * 主键
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 名字
     */
    public String getName() {
        return name;
    }

    /**
     * 名字
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 路径
     */
    public String getUrl() {
        return url;
    }

    /**
     * 路径
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * 
     */
    public String getIsActive() {
        return isActive;
    }

    /**
     * 
     */
    public void setIsActive(String isActive) {
        this.isActive = isActive;
    }

    /**
     * 是否小程序
     */
    public String getIsMiniProgram() {
        return isMiniProgram;
    }

    /**
     * 是否小程序
     */
    public void setIsMiniProgram(String isMiniProgram) {
        this.isMiniProgram = isMiniProgram;
    }

    /**
     * logo
     */
    public String getImage() {
        return image;
    }

    /**
     * logo
     */
    public void setImage(String image) {
        this.image = image;
    }

    /**
     * 小程序id
     */
    public String getAppid() {
        return appid;
    }

    /**
     * 小程序id
     */
    public void setAppid(String appid) {
        this.appid = appid;
    }

    /**
     * 小程序路径
     */
    public String getPath() {
        return path;
    }

    /**
     * 小程序路径
     */
    public void setPath(String path) {
        this.path = path;
    }

    /**
     * 
     */
    public String getIsShow() {
        return isShow;
    }

    /**
     * 
     */
    public void setIsShow(String isShow) {
        this.isShow = isShow;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AppleService other = (AppleService) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl()))
            && (this.getIsActive() == null ? other.getIsActive() == null : this.getIsActive().equals(other.getIsActive()))
            && (this.getIsMiniProgram() == null ? other.getIsMiniProgram() == null : this.getIsMiniProgram().equals(other.getIsMiniProgram()))
            && (this.getImage() == null ? other.getImage() == null : this.getImage().equals(other.getImage()))
            && (this.getAppid() == null ? other.getAppid() == null : this.getAppid().equals(other.getAppid()))
            && (this.getPath() == null ? other.getPath() == null : this.getPath().equals(other.getPath()))
            && (this.getIsShow() == null ? other.getIsShow() == null : this.getIsShow().equals(other.getIsShow()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode());
        result = prime * result + ((getIsActive() == null) ? 0 : getIsActive().hashCode());
        result = prime * result + ((getIsMiniProgram() == null) ? 0 : getIsMiniProgram().hashCode());
        result = prime * result + ((getImage() == null) ? 0 : getImage().hashCode());
        result = prime * result + ((getAppid() == null) ? 0 : getAppid().hashCode());
        result = prime * result + ((getPath() == null) ? 0 : getPath().hashCode());
        result = prime * result + ((getIsShow() == null) ? 0 : getIsShow().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", url=").append(url);
        sb.append(", isActive=").append(isActive);
        sb.append(", isMiniProgram=").append(isMiniProgram);
        sb.append(", image=").append(image);
        sb.append(", appid=").append(appid);
        sb.append(", path=").append(path);
        sb.append(", isShow=").append(isShow);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}